Centralize changing the operation mode in operation_mode_set()
authorFederico Mena Quintero <federico@gnome.org>
Tue, 26 Jul 2011 21:17:43 +0000 (16:17 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Wed, 27 Jul 2011 23:55:54 +0000 (18:55 -0500)
commitcccf35f862289dbc9acc27a0e3ad060ea6d3fe23
treeefd2b0dbedd70941db844a593d9858d591ef683f
parent7726276fe9c21f2a70ff3f556d2232f7d2d5fb7f
Centralize changing the operation mode in operation_mode_set()

This will be the central function to switch operation modes:  stop searches or the recent-files
process; switch widgets, etc.

We factor out the common code from recent_switch_to_browse_mode() and search_switch_to_browse_mode(),
and remove those functions.  All the code that switched modes by hand now calls
the central operation_mode_set().

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserdefault.c